package com.ruoyi.workbench.service.impl;

import java.util.List;
import com.ruoyi.workbench.domain.WorkTaskItem;
import com.ruoyi.workbench.mapper.WorkTaskItemMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.workbench.service.IWorkTaskItemService;

/**
 * 工作任务Service业务层处理
 * 
 * @author Guojl
 * @date 2024-07-05
 */
@Service
public class WorkTaskItemServiceImpl implements IWorkTaskItemService
{
    @Autowired
    private WorkTaskItemMapper workTaskItemMapper;

    /**
     * 查询工作任务详细
     *
     * @param taskItemId 工作任务详细主键
     * @return 工作任务详细
     */
    @Override
    public WorkTaskItem selectWorkTaskItemByTaskItemId(Long taskItemId)
    {
        return workTaskItemMapper.selectWorkTaskItemByTaskItemId(taskItemId);
    }

    /**
     * 查询工作任务详细列表
     *
     * @param workTaskItem 工作任务详细
     * @return 工作任务详细
     */
    @Override
    public List<WorkTaskItem> selectWorkTaskItemList(WorkTaskItem workTaskItem)
    {
        return workTaskItemMapper.selectWorkTaskItemList(workTaskItem);
    }

    /**
     * 新增工作任务详细
     *
     * @param workTaskItem 工作任务详细
     * @return 结果
     */
    @Override
    public int insertWorkTaskItem(WorkTaskItem workTaskItem)
    {
        return workTaskItemMapper.insertWorkTaskItem(workTaskItem);
    }

    /**
     * 修改工作任务详细
     *
     * @param workTaskItem 工作任务详细
     * @return 结果
     */
    @Override
    public int updateWorkTaskItem(WorkTaskItem workTaskItem)
    {
        return workTaskItemMapper.updateWorkTaskItem(workTaskItem);
    }

    /**
     * 批量删除工作任务详细
     *
     * @param taskItemIds 需要删除的工作任务详细主键
     * @return 结果
     */
    @Override
    public int deleteWorkTaskItemByTaskItemIds(Long[] taskItemIds)
    {
        return workTaskItemMapper.deleteWorkTaskItemByTaskItemIds(taskItemIds);
    }

    /**
     * 删除工作任务详细信息
     *
     * @param taskItemId 工作任务详细主键
     * @return 结果
     */
    @Override
    public int deleteWorkTaskItemByTaskItemId(Long taskItemId)
    {
        return workTaskItemMapper.deleteWorkTaskItemByTaskItemId(taskItemId);
    }
}
